package sh.ds.el.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import sh.ds.el.entity.base.BusinessEntity;

@Entity
@Table(name = "SM_USER")
@SuppressWarnings("serial")
public class UserVO extends BusinessEntity {

	/** 性别：M=男，F=女 */
	public enum Sex {
		M, F
	}
	
	/** 流水号 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "USER_ID")
	private Long userId;
	
	/** 用户名 */
	@Column(name = "USER_CODE")
	private String userCode;
	
	/** 密码 */
	@Column(name = "PASSWORD")
	private String password;
	
	/** 姓名 */
	@Column(name = "USER_NAME")
	private String userName;
	
	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Override
	public Serializable getId() {
		return userId;
	}
	
}
